home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9784 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 69 6e | 66 6f 2e 62 74 61 2e 6e |Path: in|fo.bta.n|
|00000010| 65 74 2e 63 6e 21 75 73 | 65 6e 65 74 0a 46 72 6f |et.cn!us|enet.Fro|
|00000020| 6d 3a 20 58 75 20 59 69 | 66 65 6e 67 20 3c 6a 61 |m: Xu Yi|feng <ja|
|00000030| 66 64 40 70 75 62 6c 69 | 63 2e 73 74 61 2e 6e 65 |fd@publi|c.sta.ne|
|00000040| 74 2e 63 6e 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |t.cn>.Ne|wsgroups|
|00000050| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 2b 2b 0a |: comp.l|ang.c++.|
|00000060| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 48 6f 77 |Subject:| Re: How|
|00000070| 20 74 6f 20 63 6f 70 79 | 20 66 72 6f 6d 20 44 50 | to copy| from DP|
|00000080| 4d 49 2d 33 32 20 74 6f | 20 44 4f 53 20 52 61 6d |MI-32 to| DOS Ram|
|00000090| 3f 0a 44 61 74 65 3a 20 | 4d 6f 6e 2c 20 30 34 20 |?.Date: |Mon, 04 |
|000000a0| 4d 61 72 20 31 39 39 36 | 20 31 38 3a 34 37 3a 33 |Mar 1996| 18:47:3|
|000000b0| 36 20 2d 30 38 30 30 0a | 4f 72 67 61 6e 69 7a 61 |6 -0800.|Organiza|
|000000c0| 74 69 6f 6e 3a 20 42 65 | 69 6a 69 6e 67 20 54 65 |tion: Be|ijing Te|
|000000d0| 6c 65 67 72 61 70 68 20 | 41 64 6d 69 6e 69 73 74 |legraph |Administ|
|000000e0| 72 61 74 69 6f 6e 0a 4d | 65 73 73 61 67 65 2d 49 |ration.M|essage-I|
|000000f0| 44 3a 20 3c 33 31 33 42 | 41 42 34 38 2e 43 43 39 |D: <313B|AB48.CC9|
|00000100| 40 70 75 62 6c 69 63 2e | 73 74 61 2e 6e 65 74 2e |@public.|sta.net.|
|00000110| 63 6e 3e 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |cn>.Refe|rences: |
|00000120| 3c 34 68 64 66 68 37 24 | 62 68 70 40 66 72 6f 64 |<4hdfh7$|bhp@frod|
|00000130| 6f 2e 73 6d 61 72 74 6c | 69 6e 6b 2e 6e 65 74 3e |o.smartl|ink.net>|
|00000140| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000150| 73 74 3a 20 74 73 32 2d | 31 36 2e 73 74 61 2e 6e |st: ts2-|16.sta.n|
|00000160| 65 74 2e 63 6e 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |et.cn.Mi|me-Versi|
|00000170| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|00000180| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|00000190| 3b 20 63 68 61 72 73 65 | 74 3d 75 73 2d 61 73 63 |; charse|t=us-asc|
|000001a0| 69 69 0a 43 6f 6e 74 65 | 6e 74 2d 54 72 61 6e 73 |ii.Conte|nt-Trans|
|000001b0| 66 65 72 2d 45 6e 63 6f | 64 69 6e 67 3a 20 37 62 |fer-Enco|ding: 7b|
|000001c0| 69 74 0a 58 2d 4d 61 69 | 6c 65 72 3a 20 4d 6f 7a |it.X-Mai|ler: Moz|
|000001d0| 69 6c 6c 61 20 32 2e 30 | 62 36 62 20 28 57 69 6e |illa 2.0|b6b (Win|
|000001e0| 39 35 3b 20 49 3b 20 31 | 36 62 69 74 29 0a 54 6f |95; I; 1|6bit).To|
|000001f0| 3a 20 54 68 65 20 4e 61 | 6d 65 6c 65 73 73 20 4f |: The Na|meless O|
|00000200| 6e 65 20 3c 68 6f 70 6b | 69 6e 73 40 73 6d 61 72 |ne <hopk|ins@smar|
|00000210| 74 6c 69 6e 6b 2e 6e 65 | 74 3e 0a 0a 54 68 65 20 |tlink.ne|t>..The |
|00000220| 4e 61 6d 65 6c 65 73 73 | 20 4f 6e 65 20 77 72 6f |Nameless| One wro|
|00000230| 74 65 3a 0a 3a 3e 20 0a | 3a 3e 20 20 20 20 20 49 |te:.:> .|:> I|
|00000240| 20 77 72 6f 74 65 20 61 | 20 53 70 72 69 74 65 20 | wrote a| Sprite |
|00000250| 26 20 47 72 61 70 68 69 | 63 73 20 4c 69 62 72 61 |& Graphi|cs Libra|
|00000260| 72 79 2c 20 61 6e 64 20 | 65 76 65 72 79 74 68 69 |ry, and |everythi|
|00000270| 6e 67 20 77 6f 72 6b 73 | 20 66 69 6e 65 20 69 6e |ng works| fine in|
|00000280| 0a 3a 3e 20 73 74 61 6e | 64 61 72 64 20 44 4f 53 |.:> stan|dard DOS|
|00000290| 20 6d 6f 64 65 2e 2e 2e | 20 20 42 75 74 20 77 68 | mode...| But wh|
|000002a0| 65 6e 20 49 20 63 6f 6d | 70 69 6c 65 20 69 74 20 |en I com|pile it |
|000002b0| 61 73 20 61 20 33 32 62 | 69 74 20 44 50 4d 49 20 |as a 32b|it DPMI |
|000002c0| 66 69 6c 65 20 69 74 20 | 67 69 76 65 73 0a 3a 3e |file it |gives.:>|
|000002d0| 20 6d 65 20 61 20 47 50 | 20 46 61 75 6c 74 20 65 | me a GP| Fault e|
|000002e0| 72 72 6f 72 20 61 6e 64 | 20 73 61 79 73 20 74 68 |rror and| says th|
|000002f0| 61 74 20 6d 79 20 70 72 | 6f 67 72 61 6d 20 64 6f |at my pr|ogram do|
|00000300| 65 73 20 6e 6f 74 20 6f | 77 6e 20 61 64 64 72 65 |es not o|wn addre|
|00000310| 73 73 20 41 30 30 30 30 | 30 21 0a 3a 3e 20 0a 3a |ss A0000|0!.:> .:|
|00000320| 3e 20 20 20 20 20 49 20 | 6e 65 65 64 20 74 6f 20 |> I |need to |
|00000330| 6b 6e 6f 77 20 68 6f 77 | 20 74 6f 20 74 65 6c 6c |know how| to tell|
|00000340| 20 74 68 65 20 44 50 4d | 49 20 68 6f 73 74 20 74 | the DPM|I host t|
|00000350| 68 61 74 20 49 20 6f 77 | 6e 20 74 68 65 20 44 4f |hat I ow|n the DO|
|00000360| 53 20 56 69 64 65 6f 20 | 52 61 6d 0a 3a 3e 20 28 |S Video |Ram.:> (|
|00000370| 36 34 6b 20 61 74 20 41 | 30 30 30 3a 30 30 30 30 |64k at A|000:0000|
|00000380| 29 2c 20 6f 72 20 6a 75 | 73 74 20 68 6f 77 20 74 |), or ju|st how t|
|00000390| 6f 20 63 6f 70 79 20 66 | 72 6f 6d 20 61 20 36 34 |o copy f|rom a 64|
|000003a0| 6b 20 62 75 66 66 65 72 | 20 61 62 6f 76 65 20 6f |k buffer| above o|
|000003b0| 6e 65 20 6d 65 67 0a 3a | 3e 20 69 6e 74 6f 20 74 |ne meg.:|> into t|
|000003c0| 68 65 20 56 69 64 65 6f | 20 52 61 6d 20 61 74 20 |he Video| Ram at |
|000003d0| 41 30 30 30 30 30 20 28 | 62 65 6c 6f 77 20 31 6d |A00000 (|below 1m|
|000003e0| 65 67 29 2e 0a 3a 3e 20 | 0a 3a 3e 20 20 20 20 20 |eg)..:> |.:> |
|000003f0| 42 54 57 2c 20 49 20 61 | 6d 20 75 73 69 6e 67 20 |BTW, I a|m using |
|00000400| 42 6f 72 6c 61 6e 64 20 | 50 6f 77 65 72 50 61 6b |Borland |PowerPak|
|00000410| 20 66 6f 72 20 44 4f 53 | 20 61 6e 64 20 42 6f 72 | for DOS| and Bor|
|00000420| 6c 61 6e 64 20 43 2b 2b | 20 34 2e 35 32 2e 0a 3a |land C++| 4.52..:|
|00000430| 3e 20 42 6f 72 6c 61 6e | 64 27 73 20 72 6f 75 74 |> Borlan|d's rout|
|00000440| 69 6e 65 73 20 64 6f 6e | 27 74 20 77 6f 72 6b 20 |ines don|'t work |
|00000450| 2d 2d 20 74 68 65 20 6f | 6e 65 20 67 69 76 65 73 |-- the o|ne gives|
|00000460| 20 79 6f 75 20 61 6e 20 | 61 72 72 61 79 20 61 6e | you an |array an|
|00000470| 64 20 72 75 6e 73 0a 3a | 3e 20 53 4c 4f 57 45 52 |d runs.:|> SLOWER|
|00000480| 20 74 68 61 6e 20 69 74 | 73 20 73 74 61 6e 64 61 | than it|s standa|
|00000490| 72 64 20 44 4f 53 20 63 | 6f 75 6e 74 65 72 70 61 |rd DOS c|ounterpa|
|000004a0| 72 74 2c 20 74 68 65 20 | 6f 74 68 65 72 20 77 68 |rt, the |other wh|
|000004b0| 69 63 68 20 69 73 20 53 | 55 50 50 4f 53 45 44 20 |ich is S|UPPOSED |
|000004c0| 74 6f 0a 3a 3e 20 67 69 | 76 65 20 79 6f 75 20 61 |to.:> gi|ve you a|
|000004d0| 20 70 6f 69 6e 74 65 72 | 20 64 6f 65 73 20 6e 6f | pointer| does no|
|000004e0| 74 20 63 6f 6d 70 69 6c | 65 21 21 21 20 20 49 74 |t compil|e!!! It|
|000004f0| 20 72 75 6e 73 20 54 41 | 53 4d 33 32 20 61 6e 64 | runs TA|SM32 and|
|00000500| 20 63 6f 6d 65 73 20 62 | 61 63 6b 20 77 69 74 68 | comes b|ack with|
|00000510| 0a 3a 3e 20 61 6e 20 22 | 55 6e 6b 6e 6f 77 6e 20 |.:> an "|Unknown |
|00000520| 41 73 73 65 6d 62 6c 79 | 20 49 6e 73 74 72 75 63 |Assembly| Instruc|
|00000530| 74 69 6f 6e 22 20 65 72 | 72 6f 72 2e 20 20 54 79 |tion" er|ror. Ty|
|00000540| 70 69 63 61 6c 20 42 6f | 72 6c 61 6e 64 20 48 61 |pical Bo|rland Ha|
|00000550| 6c 66 2d 41 73 73 65 64 | 2d 6e 65 73 73 21 0a 3a |lf-Assed|-ness!.:|
|00000560| 3e 20 0a 3a 3e 20 50 6c | 65 61 73 65 20 45 4d 61 |> .:> Pl|ease EMa|
|00000570| 69 6c 20 79 6f 75 72 20 | 72 65 73 70 6f 6e 73 65 |il your |response|
|00000580| 20 74 6f 20 20 68 6f 70 | 6b 69 6e 73 40 73 6d 61 | to hop|kins@sma|
|00000590| 72 74 6c 69 6e 6b 2e 6e | 65 74 20 20 62 65 63 61 |rtlink.n|et beca|
|000005a0| 75 73 65 20 49 20 6f 6e | 6c 79 20 63 68 65 63 6b |use I on|ly check|
|000005b0| 0a 3a 3e 20 4e 65 77 73 | 47 72 6f 75 70 73 20 6f |.:> News|Groups o|
|000005c0| 6e 63 65 20 6f 72 20 74 | 77 69 63 65 20 61 20 6d |nce or t|wice a m|
|000005d0| 6f 6e 74 68 20 61 6e 64 | 20 74 68 69 73 20 67 72 |onth and| this gr|
|000005e0| 6f 75 70 20 73 65 65 6d | 73 20 70 72 65 74 74 79 |oup seem|s pretty|
|000005f0| 20 70 6f 70 75 6c 61 72 | 2e 0a 3a 3e 20 54 68 61 | popular|..:> Tha|
|00000600| 6e 6b 73 21 0a 0a 48 69 | 2c 0a 0a 4e 6f 72 6d 61 |nks!..Hi|,..Norma|
|00000610| 6c 6c 79 2c 20 70 72 6f | 67 72 61 6d 27 73 20 64 |lly, pro|gram's d|
|00000620| 61 74 61 20 73 65 67 6d | 65 6e 74 20 44 53 20 69 |ata segm|ent DS i|
|00000630| 73 20 6e 6f 74 20 7a 65 | 72 6f 20 62 61 73 65 2c |s not ze|ro base,|
|00000640| 20 73 6f 20 64 69 72 65 | 63 74 6c 79 20 75 73 65 | so dire|ctly use|
|00000650| 0a 6f 66 66 73 65 74 20 | 41 30 30 30 30 20 69 73 |.offset |A0000 is|
|00000660| 20 69 6e 76 61 6c 69 64 | 2c 20 64 65 66 61 75 6c | invalid|, defaul|
|00000670| 74 20 44 53 27 73 20 62 | 61 73 65 20 61 64 64 72 |t DS's b|ase addr|
|00000680| 65 73 73 20 69 73 20 61 | 6c 77 61 79 73 20 31 4d |ess is a|lways 1M|
|00000690| 20 75 70 70 65 72 2e 0a | 42 6f 72 6c 61 6e 64 20 | upper..|Borland |
|000006a0| 43 2b 2b 20 64 6f 65 73 | 6e 27 74 20 73 75 70 70 |C++ does|n't supp|
|000006b0| 6f 72 74 20 6b 65 79 77 | 6f 72 64 20 5f 5f 66 61 |ort keyw|ord __fa|
|000006c0| 72 2c 20 5f 66 61 72 2c | 20 66 61 72 2c 20 77 68 |r, _far,| far, wh|
|000006d0| 69 6c 65 20 63 6f 6d 70 | 69 6c 69 6e 67 0a 33 32 |ile comp|iling.32|
|000006e0| 20 62 69 74 20 43 2b 2b | 20 70 72 6f 67 72 61 6d | bit C++| program|
|000006f0| 2e 20 69 66 20 79 6f 75 | 20 6e 65 65 64 20 74 6f |. if you| need to|
|00000700| 20 72 65 66 72 65 6e 63 | 65 20 61 6e 20 61 64 64 | refrenc|e an add|
|00000710| 72 65 73 73 20 6f 75 74 | 20 6f 66 20 64 65 66 61 |ress out| of defa|
|00000720| 75 6c 74 0a 64 61 74 61 | 20 73 65 67 6d 65 6e 74 |ult.data| segment|
|00000730| 2c 20 79 6f 75 20 6e 65 | 65 64 20 74 6f 20 63 61 |, you ne|ed to ca|
|00000740| 6c 6c 20 66 75 6e 63 74 | 69 6f 6e 73 3a 20 70 65 |ll funct|ions: pe|
|00000750| 65 6b 2c 20 70 6f 6b 65 | 2c 20 6f 72 20 6d 6f 76 |ek, poke|, or mov|
|00000760| 65 64 61 74 61 2c 20 0a | 61 6e 6f 74 68 65 72 20 |edata, .|another |
|00000770| 77 61 79 20 69 73 20 75 | 73 69 6e 67 20 69 6e 6c |way is u|sing inl|
|00000780| 69 6e 65 20 61 73 73 65 | 6d 62 6c 65 20 6c 61 6e |ine asse|mble lan|
|00000790| 67 75 61 67 65 20 74 6f | 20 63 68 61 6e 67 65 20 |guage to| change |
|000007a0| 44 53 20 74 6f 20 73 70 | 65 63 69 61 6c 0a 73 65 |DS to sp|ecial.se|
|000007b0| 6c 65 63 74 6f 72 2c 20 | 61 66 74 65 72 20 61 63 |lector, |after ac|
|000007c0| 63 65 73 73 20 74 68 65 | 20 64 61 74 61 2c 20 74 |cess the| data, t|
|000007d0| 68 65 6e 20 72 65 73 74 | 6f 72 65 20 64 65 66 61 |hen rest|ore defa|
|000007e0| 75 6c 74 20 44 53 2e 0a | 42 6f 72 6c 61 6e 64 20 |ult DS..|Borland |
|000007f0| 43 2b 2b 20 68 61 73 20 | 70 72 65 64 65 66 69 6e |C++ has |predefin|
|00000800| 65 64 20 73 65 6c 65 63 | 74 6f 72 20 69 6e 20 64 |ed selec|tor in d|
|00000810| 6f 73 2e 68 2c 20 79 6f | 75 20 63 61 6e 20 75 73 |os.h, yo|u can us|
|00000820| 65 20 74 68 65 6d 2e 0a | 66 6f 72 20 6d 6f 72 65 |e them..|for more|
|00000830| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2c 20 70 6c | informa|tion, pl|
|00000840| 65 61 73 65 20 72 65 61 | 64 20 74 68 65 20 65 78 |ease rea|d the ex|
|00000850| 61 6d 70 6c 65 20 63 6f | 64 65 20 69 6e 20 50 6f |ample co|de in Po|
|00000860| 77 65 72 70 61 63 6b 2e | 0a 0a 52 65 67 61 72 64 |werpack.|..Regard|
|00000870| 73 2c 0a 58 75 20 59 69 | 66 65 6e 67 0a |s,.Xu Yi|feng. |
+--------+-------------------------+-------------------------+--------+--------+